/*
 * Copyright (C) 2012 Square, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package top.bingoz.wanandroid.test

import retrofit2.Call
import retrofit2.http.GET
import top.bingoz.wanandroid.common.Constants
import java.io.Serializable

object ApiService {
    val API_URL = Constants.URL.SERVER

    data class UserInfo(
            var soft_uid: String? = null,
            var isAgent: Int = 0,
            var wx_uid: Int = 0,
            var energy: Int = 0,
            var headimgurl: String? = null,
            var nickname: String? = null,
            var integral_name: String? = null,
            var integral: String? = null,
            var money: String? = null,
            var red_num: String? = null,
            var mobile: String? = null,
            var pid: String = "",
            var read_num: Int = 0,
            var province_money: String? = null,
            var union_id: String? = null,
            var wx_name: String? = null,
            var savemoney_code: String? = null,
            var grade_name: String? = null,
            var grade_url: String? = null,
            var keyword: ArrayList<String> = ArrayList()
    ) : Serializable

    interface Api {
        @GET("/test.json")
        fun getUserInfo(): Call<UserInfo>
    }

}